package org.sgx.gwteditors.testgallery.gallery.simple;

import java.util.Date;
import java.util.Map;

import org.sgx.gwteditors.client.impl1.simple.DateTimeEditor;
import org.sgx.gwteditors.client.util.TestUtil;
import org.sgx.gwteditors.testgallery.gallery.Test;
import org.sgx.gwteditors.testgallery.gallery.TestResources;

import com.google.gwt.resources.client.ExternalTextResource;
import com.google.gwt.user.client.ui.Panel;
/**
 * DateAndTimeEditorTest1
 * @author sg
 *
 */
public class SimpleDateAndTimeEditorTest implements Test {

/*---begintestmaincode---*/
@Override
public void test(Panel parent) {
	Date d = new Date();
	DateTimeEditor ed = new DateTimeEditor(); 
	ed.load(d); 
	parent.add(ed.getWidget()); 	
}
/*---endtestmaincode---*/
	
	
	//test stuff
	@Override
	public String getName() {
		return "date&time";
	}
	@Override
	public Map<String, ExternalTextResource> getJavaSources() {
		return TestUtil.getResource(getName(), TestResources.INSTANCE.DateAndTimeEditorTest1());
	}
	@Override
	public String[] getTags() {
		return new String[]{};
	}
	@Override
	public String getDescription() {
		return "date&time";
	}
}
